package com.ctshk.rpc.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ctshk.common.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * <p>
 * 操作日志表
 * </p>
 *
 * @author 谢诗宏
 * @since 2021-03-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_login_log")
@ApiModel(value="LoginLog对象", description="操作日志表")
public class LoginLog extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "操作用户")
    private Long userId;

    @ApiModelProperty(value = "登录类型")
    private String type;

    @ApiModelProperty(value = "操作结果")
    private String result;

    @ApiModelProperty(value = "操作IP")
    private String ip;

    @ApiModelProperty(value = "浏览器")
    private String browser;

    @ApiModelProperty(value = "登录时间")
    private LocalDateTime gmtCreate;

}
